<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>

  <script>
    // const script = document.createElement('script')
    // script.src = 'https://cdn.jsdelivr.net/npm/echarts@4.8.0/dist/echarts.min.js'
    // console.dir(script)
    // script.async = false
    // document.body.appendChild(script)
    // console.log(echarts)

    document.write('<script src="https://cdn.jsdelivr.net/npm/echarts@4.8.0/dist/echarts.min.js"><\/script>')

    console.log(echarts)
  </script>
</body>
</html>